module model.article;

/** 
 * 文章Model
 */
struct Article
{
    int id;
    string title;
    string thumbnail;
    string summary;
    string isHot;
    string isTop;
    string visible;
    string content;
    int categoryId;
    string categoryTitle;
    int viewsCount;
    int commentsCount;
    string fzyWxqrcode = null;
    string createTime;
    string updateTime;
}

/** 
 * 文章DTO Fro Create
 */
struct ArticleDtoForCreate
{
    string title;
    string thumbnail;
    string summary;
    string isHot = "N";
    string isTop = "N";
    string visible = "Y";
    string content;
    int categoryId;
    string categoryTitle;
    int viewsCount = 0;
    int commentsCount = 0;
    string fzyWxqrcode = "";
    string createTime;
    string updateTime;
}

/** 
 * 文章DTO For Update
 */
struct ArticleDtoForUpdate
{
    int id;
    string title;
    string thumbnail;
    string summary;
    string isHot;
    string isTop;
    string visible;
    string content;
    int categoryId;
    string categoryTitle;
    string updateTime;
}

/** 
 * 文章归档Dto
 */
struct ArticleArchive
{
    int year;
    Article[] articles;
}
